/*day_mon2.c -- 让编译器计算元素个数*/
#include "stdio.h"

void main(){
    const int days[] = {31,28,31,30,31,30,31,31,30,31,30,31};
    int i;

    for(i = 0;i < sizeof days/sizeof days[0];i++){
        printf("i=%d,days=%d\n",i+1,days[i]);
    }
}